﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SIE.SCADA.ZemtDemo.MqClient.Model
{
    public class Material_Record
    {

        /// <summary>
        /// 物料编码
        /// </summary>
        public string MatCode
        {
            get; set;
        }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MatName
        {
            get; set;
        }
        /// <summary>
        /// SN
        /// </summary>
        public string SN
        {
            get; set;
        }
        /// <summary>
        /// 状态
        /// </summary>
        public int? State_Int
        {
            get; set;
        }
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserID
        {
            get; set;
        }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName
        {
            get; set;
        }
        /// <summary>
        /// 
        /// </summary>
        public string JobStep_Code_Str
        {
            get; set;
        }
        /// <summary>
        /// 
        /// </summary>
        public int? JobStep_ID
        {
            get; set;
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Index
        {
            get; set;
        }
        /// <summary>
        /// 
        /// </summary>
        public string MatId
        {
            get; set;
        }
        /// <summary>
        /// 
        /// </summary>
        public string Serial_Number_Str
        {
            get; set;
        }
        /// <summary>
        /// 
        /// </summary>
        public string MBom
        {
            get; set;
        }
        /// <summary>
        /// 
        /// </summary>
        public string JobStep_Name_Str
        {
            get; set;
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? Modifytime_Dt
        {
            get; set;
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? Createtime_Dt
        {
            get; set;
        }

    }
    /// <summary>
    /// 物料信息
    /// </summary>
    public class MaininfosItem
    {
        /// <summary>
        /// 配置序号
        /// </summary>
        public string sort { get; set; }
        /// <summary>
        /// 子物料号
        /// </summary>
        public string mid { get; set; }
        /// <summary>
        /// 子物料名称
        /// </summary>
        public string mname { get; set; }
        /// <summary>
        /// 车号
        /// </summary>
        public string carno { get; set; }
        /// <summary>
        /// 组
        /// </summary>
        public string organize { get; set; }
        /// <summary>
        /// 安装位置
        /// </summary>
        public string fixlocation { get; set; }
        /// <summary>
        /// 序列号
        /// </summary>
        public string sn { get; set; }
        /// <summary>
        /// 硬件版本
        /// </summary>
        public string hversion { get; set; }
        /// <summary>
        /// 软件版本1
        /// </summary>
        public string sversion1 { get; set; }
        /// <summary>
        /// 软件版本2
        /// </summary>
        public string sversion2 { get; set; }
        /// <summary>
        /// 软件版本3
        /// </summary>
        public string sversion3 { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string vendor { get; set; }
        /// <summary>
        /// 供应商物料号
        /// </summary>
        public string vendormid { get; set; }
        /// <summary>
        /// 隶属线路
        /// </summary>
        public string btline { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string batch { get; set; }
        /// <summary>
        /// 出厂日期限
        /// </summary>
        public string lfdate { get; set; }
        /// <summary>
        /// 显示终端
        /// </summary>
        public string viewterminal { get; set; }
        /// <summary>
        /// 首/尾车
        /// </summary>
        public string hecar { get; set; }
        /// <summary>
        /// 生产日期+炉号
        /// </summary>
        public string manufacturedate { get; set; }
        /// <summary>
        /// 修程
        /// </summary>
        public string fixprocess { get; set; }
        /// <summary>
        /// 编号类型
        /// </summary>
        public string codetype { get; set; }
        /// <summary>
        /// MAC地址
        /// </summary>
        public string macadress { get; set; }
    }
    /// <summary>
    /// 工单信息
    /// </summary>
    public class TempdatasItem
    {
        /// <summary>
        /// 生产订单号
        /// </summary>
        public string pono { get; set; }
        /// <summary>
        /// 物料号
        /// </summary>
        public string pmid { get; set; }
        /// <summary>
        /// 物料描述
        /// </summary>
        public string pmname { get; set; }
        /// <summary>
        /// 产品序列号
        /// </summary>
        public string productsn { get; set; }
        /// <summary>
        /// 文档创建者
        /// </summary>
        public string createbyuser { get; set; }
        /// <summary>
        /// 配置子项根节点数据结
        /// </summary>
        public List<MaininfosItem> maininfos { get; set; }
    }

    /// <summary>
    /// 模板数据
    /// </summary>
    public class MatRecord
    {
        /// <summary>
        /// 工单数据
        /// </summary>
        public List<TempdatasItem> tempdatas { get; set; }
    }
}
